﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RegisterWebserviceManager.ascx.cs"
    Inherits="TMDT_Nhom1A.UserControl_Manager.RegisterWebserviceManager" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="module_round_box_inner">
            <div class="module_round_box_inner2">
                <div class="s5_mod_h3_1">
                    <div class="s5_mod_h3_2">
                        <h3 class="s5_mod_h3">
                            <span class="s5_h3_first">Quản Lý Đăng Ký Webservice</span>
                        </h3>
                    </div>
                </div>
                <!-- content -->
                <asp:GridView ID="gvRegisterWebserviceManager" runat="server" Width="100%" AutoGenerateColumns="False"
                    OnRowCommand="gvRegisterWebserviceManager_RowCommand" OnRowDataBound="gvRegisterWebserviceManager_RowDataBound">
                    <Columns>
                        <asp:BoundField HeaderText="Link" DataField="Url"></asp:BoundField>
                        <asp:BoundField HeaderText="Tên Hệ Thống Mua Chung" DataField="SystemName"></asp:BoundField>
                        <asp:BoundField HeaderText="Email" DataField="SystemMail"></asp:BoundField>
                        <asp:BoundField HeaderText="Ngày Đăng Kí" DataField="RegistryDate"></asp:BoundField>
                        
                        <asp:TemplateField HeaderText="Kích Hoạt">
                            <ItemTemplate>
                                <asp:Label ID="lbKichHoat" Visible="false" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                                <asp:CheckBox ID="cbKichHoat" runat="server" />
                            </ItemTemplate>
                            <ItemStyle Width="100px" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tình trạng Duyệt">
                            <ItemTemplate>
                                <asp:Label ID="lbstatus" Visible="false" runat="server" Text='<%# Eval("Activate") %>'></asp:Label>
                                <asp:Label ID="lbinformation" runat="server" Text="Label"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:ImageButton ID="btCheckAll" runat="server" ImageUrl="~/images/Check-icon.png"
                                    CommandName="CheckAll" />
                                <asp:CheckBox ID="cbCheckAll" Visible="false" Checked="false" runat="server" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbcheck" runat="server" />
                                <asp:Label ID="lbRegisterID" runat="server" Visible="false" Text='<%# Eval("Webservice_ID") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderGrid" />
                </asp:GridView>
                <br />
                Kết Quả:
                <asp:Label ID="LbResult" runat="server"></asp:Label>
                <br />
                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                    <ProgressTemplate>
                        Đang lấy dữ liệu từ server...
                        <img src="../images/ajax-loader.gif" />&nbsp;&nbsp;
                    </ProgressTemplate>
                </asp:UpdateProgress>
                <br />
                <br />
                <div style=" width:100%; text-align:center;">
                
                    <asp:Button CssClass="button" ID="btactive" runat="server" Text="Chấp nhận" OnClientClick="if(!confirm('Bạn có muốn chấp nhận hết tất cả không ?')) return false;"
                        OnClick="btactive_Click" />
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
